package org.dromara.bean.constant;

public interface CommonConstant {
    public static final String SYS_CHARACTER_ENCODE_UTF_8 = "utf-8";
    public static final String SYS_CHARACTER_ENCODE_GBK = "GBK";


    /**
     * 终端定义
     */
    public static final String TERMINAL_TYPE = "terminal-type";

    /**
     * 订单支付方式
     */
    public static final String WX_PAY = "2";

    public static final String ALIPAY_PAY = "1";

    /**
     * 患者终端类型（Android APP，ios,小程序 mini）
     */
    public static final String TERMINAL_TYPE_APP_PATIENT = "APP";
    public static final String TERMINAL_TYPE_IOS_APP_PATIENT = "IOS";
    public static final String TERMINAL_TYPE_MINI_PATIENT = "mini";
    public static final String TERMINAL_TYPE_H5_PATIENT = "H5";


    /**
     * 微信返回结果码（SUCCESS：成功，FAIL：失败，SYSTEMERROR：系统超时，PARAM_ERROR：参数错误，TRADE_ERROR：支付确认失败
     * 用户状态码  NORMAL：允许，BLOCKED：不允许，OVERDUE：余额不足 ORDERPAID:订单已经支付了
     * ）
     */
    public static final String WX_CODE_SUCCESS = "SUCCESS";
    public static final String WX_CODE_FAIL = "FAIL";
    public static final String WX_SYSTEM_ERROR = "SYSTEMERROR";
    public static final String WX_PARAM_ERROR = "PARAM_ERROR";
    public static final String WX_TRADE_ERROR = "TRADE_ERROR";
    public static final String WX_USER_STATUS_NORMAL = "NORMAL";
    public static final String WX_USER_STATUS_BLOCKED = "BLOCKED";
    public static final String WX_USER_STATUS_OVERDUE = "OVERDUE";
    public static final String WX_USER_STATUS_ORDER_PAID = "ORDERPAID";


    /**
     * 用户微信支付、签约状态（0：签约中，1：解约，2：余额不足）
     */
    public static final Integer USER_WX_PAY_CONTRACT_STATUS = 0;
    public static final Integer USER_WX_PAY_NO_CONTRACT_STATUS = 1;
    public static final Integer USER_WX_PAY_MONEY_NULL = 2;


    /**
     * {@code 500 Server Error} (HTTP/1.0 - RFC 1945)
     */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /**
     * {@code 200 OK} (HTTP/1.0 - RFC 1945)
     */
    public static final Integer SC_OK_200 = 200;

    /**
     * 访问权限认证未通过 510
     */
    public static final Integer SC_JEECG_NO_AUTHZ = 510;
}
